//
//  CPYFavouriteModel.m
//  TTMusic
//
//  Created by chenpengyu on 16/4/7.
//  Copyright © 2016年 cpy. All rights reserved.
//

#import "CPYFavouriteModel.h"

@implementation CPYFavouriteModel

- (instancetype)initWithDataSource:(NSDictionary *)dataSource {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dataSource];
        NSMutableArray *mutable = [NSMutableArray array];
        for (NSDictionary *dic in self.songs) {
            CPYDiscoveryPageSongListModel *songsModel = [[CPYDiscoveryPageSongListModel alloc] initWithDataSource:dic];
            [mutable addObject:songsModel];
        }
        self.songs = [NSMutableArray arrayWithArray:mutable];
    }
    return self;
}

@end
